<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>修改图书</h1>
    <form action="/update_book" method="post">
        <!-- 隐藏域：页面中看不到，只是用于传递一些看不到的值 -->
        <input type="hidden" name="id" value="{{ .book.ID }}">
        书名：<input type="text" name="title" placeholder="请输入书名" value="{{ .book.Title }}"><br>
        出版社：<input type="text" name="pub" placeholder="请输入出版社" value="{{ .book.Pub }}"><br>
        价格：<input type="text" name="price" placeholder="请输入价格" value="{{ .book.Price }}"><br>
        零售价：<input type="text" name="market_price" placeholder="请输入零售价" value="{{ .book.Market_price }}"><br>
        <input type="reset">
        <input type="submit" value="修改">
    </form>
</body>
</html>